package com.wh.dao.ext;
import java.util.HashMap;
import java.util.Map;

import static org.apache.ibatis.jdbc.SqlBuilder.*;
/**
 * Created by Administrator on 14-1-22.
 */
public class ExcuteSql {
    public static String sort(Map<String,String> map)
    {
        BEGIN();
        UPDATE("#{table}");
        SET(" sort=#{sort},");

        return  SQL();
    }

    public static void  main(String[] agrs)
    {
        Map<String,String> map=new HashMap<String, String>();
        map.put("table","test");
        System.out.println(sort(map));
    }

}
